$def with (page)

$if page.type.key == '/type/work' and page.edition_count == 1:
    $ edit_url = page.editions[0].key + '?m=edit'
$elif page.type.key in ["/type/work", "/type/edition", "/type/author"]:
    $ edit_url = page.url(suffix="/edit")
$else:
    $ edit_url = page.key + "?m=edit"

        <h3 class="congrats"><em>$_("Super!")</em>$_(" Your new record is in the library. Thank you!")</h3>
        <p class="brown">$_("There are a few other simple things you can add while you're here to improve your new record quickly, and make it much easier for other people to find later.")</p>
        <p class="list"><span class="red">*</span>&nbsp;&nbsp;<a aria-controls="addImage" class="coverPop dialog--open">$_("Upload a cover image")</a> <span class="small sansserif brown">&nbsp;$_("Snap a quick photo of the cover to share?")</span></p>
        <p class="list"><span class="red">*</span>&nbsp;&nbsp;$_("Add an ISBN") <span class="small sansserif brown">&nbsp;$_("Help the library connect with other systems, like Amazon.")</span></p>
        <p class="list"><span class="red">*</span>&nbsp;&nbsp;$_("Add some subjects") <span class="small sansserif brown">&nbsp;$_("They're just like tags.")</span></p>
        <p class="list"><span class="red">*</span>&nbsp;&nbsp;<a href="$edit_url">$_("Describe what the book's about")</a> <span class="small sansserif brown">&nbsp;$_("Just a sentence or two is good.")</span></p>
        <a class="close" href="javascript:;" onclick="$('.bookadded').slideUp();"></a>